<?php
	namespace Admin\Model;
	use Think\Model;
	class PracticesModel extends Model{
		protected $_validate = array(
			array('yjl_name','require','名称不能为空!',1),
			array('yjl_place','require','地点不能为空!',1),
			array('yjl_ptime','require','活动时间不能为空!',1)
		);
		protected $_auto = array(
			array('yjl_pdate','getdate',self::MODEL_INSERT,'callback'),
			array('yjl_gid','0'),
			array('yjl_uid','0'),
			array('yjl_hit','0'),
			array('yjl_gid','0'),
			array('yjl_check','1')
		);
		function getdate(){
			return date('Y-m-d');
		}
	}
?>


